(function(){"use strict";const{ipcRenderer:t,webFrame:a,crashReporter:d,contextBridge:f}=require("electron"),p={ipcRenderer:{send(e,...r){s(e)&&t.send(e,...r)},invoke(e,...r){if(s(e))return t.invoke(e,...r)},on(e,r){if(s(e))return t.on(e,r),this},once(e,r){if(s(e))return t.once(e,r),this},removeListener(e,r){if(s(e))return t.removeListener(e,r),this}},ipcMessagePort:{connect(e,r,c){if(s(e)&&s(r)){const o=(g,P)=>{c===P&&(t.off(r,o),window.postMessage(c,"*",g.ports))};t.on(r,o),t.send(e,c)}}},webFrame:{setZoomLevel(e){typeof e=="number"&&a.setZoomLevel(e)}},crashReporter:{addExtraParameter(e,r){d.addExtraParameter(e,r)}},process:{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},get versions(){return process.versions},get type(){return"renderer"},get execPath(){return process.execPath},get sandboxed(){return process.sandboxed},cwd(){return process.env.VSCODE_CWD||process.execPath.substr(0,process.execPath.lastIndexOf(process.platform==="win32"?"\\":"/"))},getShellEnv(){return n},resolveEnv(e){return v(e)},getProcessMemoryInfo(){return process.getProcessMemoryInfo()},on(e,r){if(u(e))return process.on(e,r),this}}};let i=process.argv.includes("--context-isolation");if(i)try{f.exposeInMainWorld("vscode",p)}catch(e){console.error(e),i=!1}i||(window.vscode=p);function s(e){if(!e||!e.startsWith("vscode:"))throw new Error(`Unsupported event IPC channel '${e}'`);return!0}function u(e){if(e!=="uncaughtException")throw new Error(`Unsupported process event '${e}'`);return!0}let n;async function v(e){n||(Object.assign(process.env,e),n=new Promise(function(r){t.once("vscode:acceptShellEnv",function(c,o){process.env.VSCODE_SKIP_PROCESS_ENV_PATCHING||Object.assign(process.env,o,e),r({...process.env,...o,...e})}),t.send("vscode:fetchShellEnv")})),await n}})();

//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/3c4e3df9e89829dce27b7b5c24508306b151f30d/core/vs/base/parts/sandbox/electron-browser/preload.js.map
